package mms

class InspectionItem {
    String content = '' // 内容
    String result = '' // 结果
    Multimedia multimedia // 媒体
    String category = '' // 分类

//    static hasMany = []
    static belongsTo = [InspectionLog]
//    static transients = []


//    table 'xedu_article'
//    sort  lastTime
    static mapping = {
    }
    //blank 
    //email
    //inList
    //matches 
    //nullable 
    //size
    //unique
    //url 
    static constraints = {
        content(blank:false,size:0..200)// 内容
        result(blank:false,size:0..2000)// 结果
        multimedia(nullable:true) // 媒体
        category(blank:false,size:0..100) // 分类
    }

    String toString() { 
        "${content} - ${result}"
    } 
}
